<?php

use Core\API_Controller;
use Models\Help;

class HelpController extends API_Controller
{
	public function index()
	{
		$helps = CONFIG('basic.help');

		return $this->response($helps);
	}

	public function detail($type)
	{
		$helps = Help::where('type', $type)->order_by('sort desc')->get();

		return $this->response($helps);
	}
}